package top.humbleyuan.annotation_skill.use;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import top.humbleyuan.annotation_skill.Service.LogService;
import top.humbleyuan.annotation_skill.annotation.SysLog;
import top.humbleyuan.annotation_skill.config.SpringConfig;
import top.humbleyuan.util.DateUtil;

/**
 * @Author HumbleYuan
 * @Date 2019/11/25 10:58
 * @Des 日志注解
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:bean-annotation.xml")
public class LogController {

    @Autowired
    LogService logService;

    @Test
    public void updateOperation() {
        // 测试Service中日志打印
        logService.add();
        logService.delete();
        logService.update();
        logService.query();
    }
}
